function data_detail(ele,_url){
    stopBubble();
    var _data_part =$('#data_part').val();
    var _sid =$('#sid').val();
    var _channel_id =$('#channel_id').val();
    var _date = $(ele).find('div').text();
    console.log(_data_part+_sid+_channel_id);
    if((_data_part==undefined&&(_sid==0||_channel_id==0))||(((_data_part==1||_data_part=='sid')&&_sid==0)||((_data_part==2||_data_part=='channel_id')&&_channel_id==0))){
        //获取数据类型
        var indexId=layer.open({
            type: 1,
            skin: 'layui-layer-rim', //加上边框
            area: ['1000px', '600px'], //宽高
            maxmin: true,
            content: '<table class="layui-hide" id="poptable" lay-filter="poptable"  lay-size="sm" lay-skin="row"></table>'
        });
        layer.full(indexId);

        $.post(_url,
            {
                data_part: _data_part,
                sid: _sid,
                channel_id: _channel_id,
                date: _date+" - "+_date,
                start_date: _date,
                end_date: _date,
                data_detail: 1
            },
            function(data,status){
                layui.use(['table'], function(){
                    var tables = layui.table;
                    tables.render({
                        elem: "#poptable"
                        ,data: data.data
                        ,toolbar: true
                        ,totalRow: true
                        ,page: false
                        ,limit: 100
                        ,initSort: {
                            field: "time"
                            ,type: "desc"
                        }
                        ,cols: [
                            data.extra_data
                        ]
                    });
                });
            }, "json"
        ).error(function(xhr,errorText,errorType){
            var data = eval("("+xhr.responseText+")");
            layer.msg(data['message']);
        });
    }
}
function stopBubble(e) {
    if (e && e.stopPropagation)
        e.stopPropagation();
    else
        window.event.cancelBubble = true;
}